
#include <unistd.h>
extern int test_test(void);

#ifdef DBG_TEST
#include "dbg.h"
char * dbg_module_prefix = "test1";
DBG_L_TYPE dbg_module_level = DBG_L_INF;
#endif

#ifdef LOG_TEST
#include "log.h"
#endif

int main(void)
{
	char *	s	= "这是test1的打印";


#ifdef DBG_TEST
	for (int i = 0; i < 3; i++)
	{
		DBG_NOC("%s %d\n", s, i);
		DBG_ERR("%s\n", s);
		DBG_WRN("%s\n", s);
		DBG_INF("%s\n", s);
		DBG_DBG("%s\n", s);

		//usleep(1000);
	}
#endif

#ifdef LOG_TEST
	//log_module_init(LOG_L_INF, "test1", "_test1");
	log_module_init(LOG_L_INF, "test1", "_com");
	//log_module_init(LOG_L_INF,"test1","");
	for (int i = 0; i < 8000; i++)
	{
		LOG_NOC("%s %d\n", s, i);
		LOG_ERR("%s\n", s);
		LOG_WRN("%s\n", s);
		LOG_INF("%s\n", s);
		LOG_DBG("%s\n", s);

		//usleep(1000);
	}

	sleep(2);
#endif

	test_test();

	return 0;
}


